package com.wgj.android.accesslibility.service;
import android.accessibilityservice.AccessibilityService;

import com.wgj.android.accesslibility.EventBusMsg;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by Administrator on 2017/11/11.
 */

public abstract class BaseAccesslibilityServier extends AccessibilityService {

    @Override
    public void onDestroy() {
        super.onDestroy();
        EventBusMsg msg = new EventBusMsg();
        msg.setType(EventBusMsg.ACCESSIBILITY_DISCONNECTED);
        EventBus.getDefault().post(msg);
    }



    @Override
    protected void onServiceConnected() {
        super.onServiceConnected();
        EventBusMsg msg = new EventBusMsg();
        msg.setType(EventBusMsg.ACCESSIBILITY_CONNECTED);
        EventBus.getDefault().post(msg);
    }




}
